﻿using System;

namespace ErrorDumper.Providing {
    [Serializable]
    public class ExceptionFilterProperty {
        public ExceptionFilterProperty(string propertyName) {
            if (string.IsNullOrEmpty(_propertyName = propertyName))
                throw new ArgumentException("is null or empty", "propertyName");
        }

        string _propertyName;
        public string PropertyName { get { return _propertyName; } }

        readonly ExceptionFilterPropertyValueCollection _allowedValues = new ExceptionFilterPropertyValueCollection();
        public ExceptionFilterPropertyValueCollection AllowedValues { get { return _allowedValues; } }
    }
}